<?php
use Illuminate\Database\Eloquent\SoftDeletingTrait;

class UserGroup extends Eloquent {
	
	use SoftDeletingTrait;
	
	protected $dates = ['deleted_at'];
	
	protected $table = 'user_group';

	public function userPermission() {
		// Model Class Name, Foreign Key, Local Key
		return $this->hasMany('UserPermission', 'USER_GROUP_id', 'id');
	}

	public function  user() {
		// Model Class Name, Foreign Key, Local Key
		return $this->hasMany('User', 'USER_GROUP_id', 'id');
	}
}